package com.ericom.dao.hibernate;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.ericom.dao.ContentDao;
import com.ericom.model.Content;

@Repository("contentDao")
public class ContentDaoHibernate extends GenericDaoHibernate<Content, Long>
		implements ContentDao {

	public ContentDaoHibernate() {
		super(Content.class);
	}

	@Override
	public List<Content> findByTitle(String title) {

		return this.getHibernateTemplate().find("from Content where title=?",
				title);
	}

}
